package com.rqbl.tool;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * 用户登出控制类
 */


@Controller
@RequestMapping("/logout")
public class LogoutController {
    @RequestMapping("user")
    public String logout(HttpSession session) {
        session.invalidate();
        return "redirect:/user/loginHtml";
    }
}
